package com.zhss.eshop.pay.dao.impl;

import com.zhss.eshop.pay.domain.PayTransactionDO;
import com.zhss.eshop.pay.mapper.PayTransactionMapper;
import com.zhss.eshop.pay.dao.PayTransactionDAO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import com.zhss.eshop.common.util.ObjectUtils;

/**
 * TODO
 *
 * @since 2021-05-15 16:24:12
 */
@Service
public class PayTransactionDAOImpl implements PayTransactionDAO {
   
   @Resource
    private PayTransactionMapper payTransactionMapper;

    @Override
    public PayTransactionDO queryById(Long id) {
        return payTransactionMapper.queryById(id);
    }

    @Override
    public List<PayTransactionDO> queryAllByLimit(int offset, int limit) {
        return payTransactionMapper.queryAllByLimit(offset, limit);
    }

    @Override
    public Boolean save(PayTransactionDO payTransactionDO) {
        payTransactionMapper.save(payTransactionDO);
        return true;
    }

    @Override
    public Boolean update(PayTransactionDO payTransactionDO) {
        payTransactionMapper.update(payTransactionDO);
        return true;
    }

    @Override
    public Boolean deleteById(Long id) {
        payTransactionMapper.deleteById(id);
		return true;
    }
}